package top.songxs.gmall.feign.order.fallback;

import lombok.extern.slf4j.Slf4j;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.common.result.ResultCodeEnum;
import top.songxs.gmall.feign.order.OrderFeignClient;
import top.songxs.gmall.order.entity.OrderInfo;
import top.songxs.gmall.order.vo.OrderConfirmVo;
@Slf4j
public class OrderFeignClientFallback implements OrderFeignClient {
    @Override
    public Result<OrderConfirmVo> orderConfirmData() {
        log.error("orderConfirmData 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }

    @Override
    public Result<OrderInfo> findById(Long orderId) {
        log.error("findById 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
